package com.henu.engineer.service.admin

import com.henu.engineer.dao.mapper.student.StudentXmlMapper
import com.henu.engineer.dao.mapper.teacher.TeacherXmlMapper
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service

/**
 *
 * @author noexcept
 * @since 2021/8/13 0:56
 */
@Service
class AdminService {

    @Autowired
    lateinit var teacherXmlMapper: TeacherXmlMapper

    @Autowired
    lateinit var studentXmlMapper: StudentXmlMapper

    /**
     * 更新教师身份,
     * @param rank 新身份
     * @return
     */
    fun updateRank(id: String, rank: String) = teacherXmlMapper.updateRank(id, rank)


}